package com.yun.blog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.blog.bean.Category;

import java.util.List;

public interface CategoryService extends IService<Category> {

    Category getByCategoryName(String categoryName);

    Category getByCategoryId(Integer categoryId);

    List<Category> getByIsUse(Boolean isUse);

    <P extends IPage<Category>> P customPage(P page, String searchText);
}
